#include "UdpClient.hpp"
#include <memory>

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cerr << "Usage " << argv[0] << " ip port" << std::endl;
        exit(1);
    }
    std::string ip = argv[1];
    uint16_t port = std::stoi(argv[2]);
    std::unique_ptr<UdpClient> uclt = std::make_unique<UdpClient>(ip,port);// C++14
    uclt->InitClient();
    uclt->Start();
    return 0;
}